<template>
  <div class="box">
    <van-cell v-for="(item,index) in lishi" :key="index">
      <span slot="title" @click="tolishi(item)">{{item}}</span>
      <van-icon name="cross" @click="dellishi(index)"/>
    </van-cell>
  </div>
</template>

<script>
export default {
  data () {
    return {

    }
  },
  props: {
    lishi: {
      type: Array,
      required: true
    }
  },
  created () {

  },
  mounted () {

  },
  methods: {
    dellishi(val) {
      this.$emit('dellishi', val)
    },
    tolishi(val) {
      this.$emit('soulishi', val)
    }
  }
}
</script>

<style scoped lang="less">
.box {
  padding-top: 110px;
}
</style>
